package com.baidu.io;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.Reader;

public class D05_FileReader01 {
    public static void main(String[] args) throws Exception {
        //1.读取文件
        Reader fileReader = new FileReader("src/003.txt");

        //2.按字符读取文件
        int read = fileReader.read();

        //3.打印
        System.out.println(read);
        System.out.println((char) read);

        char[] chars = {2323, 21834, 44432};
        String s = new String(chars, 0, 2);
        System.out.println(s);

    }
}
